datetime — Basic date and time types¶ ... The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is supported, the ...
The DateTime class contains information on both date and time. Like a date object, datetime assumes the current Gregorian calendar extended in both directions; ...
datetime.datetime - represents a single point in time, including a date and a time. datetime.date - represents a date (year, month, and day) without a time.
The date contains year, month, day, hour, minute, second, and microsecond. The datetime module has many methods to return information about the date object.